package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.RoutinePathologyTs;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSearchVo;
import com.zhijian.medical.entity.vo.request.RoutinePathologyTsSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologyTsVo;
import com.zhijian.util.page.Page;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 常规病例-脱水 业务处理层
 *
 * @author auto
 * @version 1.0
 * @date 2024-07-25 17:49:31
 */
public interface RoutinePathologyTsService {

    /**
    * 主键查询
    *
    * @param id
    * @return
    */
    RoutinePathologyTs selectById(Long id);

    /**
    * 主键查询vo
    *
    * @param id
    * @return
    */
    RoutinePathologyTsVo selectVoById(Long id);

    /**
    * 按照主键删除
    *
    * @param id
    */
    void deleteById(Long id);

    /**
    * 按照主键批量删除
    *
    * @param idList
    */
    void deleteByIdList(List<Long> idList);

    /**
    * 新增
    *
    * @param routinePathologyTs
    * @return
    */
    Long insert(RoutinePathologyTs routinePathologyTs);

    /**
    * 动态新增
    *
    * @param routinePathologyTs
    * @return
    */
    Long insertSelective(RoutinePathologyTs routinePathologyTs);

    /**
    * 更改
    *
    * @param routinePathologyTs
    * @return
    */
    boolean update(RoutinePathologyTs routinePathologyTs);

    /**
    * 动态修改
    *
    * @param record
    * @return
    */
    boolean updateByPrimaryKeySelective(RoutinePathologyTs record);

    /**
    * 保存
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean save(RoutinePathologyTsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 编辑
    *
    * @param saveOrUpdateVo
    * @return
    */
    boolean modify(RoutinePathologyTsSaveOrUpdateVo saveOrUpdateVo);

    /**
    * 列表
    *
    * @param routinePathologyTsSearchVo
    * @return
    */
    RoutinePathologyTsVo selectOne(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
    * 总数
    *
    * @param routinePathologyTsSearchVo
    * @return
    */
    Integer count(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
    * 列表
    *
    * @param routinePathologyTsSearchVo
    * @return
    */
    List<RoutinePathologyTsVo> selectList(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
    * 分页查询
    *
    * @param routinePathologyTsSearchVo
    * @return
    */
    Page<RoutinePathologyTsVo> selectPage(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
    * 批量新增数据（MyBatis原生foreach方法）
    *
    * @param entities 实例对象列表
    * @return 影响行数
    */
    boolean insertBatch(List<RoutinePathologyTs> entities);

    /**
    * 动态删除，慎重用此方法！！
    *
    * @param routinePathologyTsSearchVo
    * @return
    */
    void deleteByCondition(RoutinePathologyTsSearchVo routinePathologyTsSearchVo);

    /**
     * 输入脱水编号
     * @param numbers
     * @return
     */
    boolean inputNums(String numbers);

    /**
     * 脱水详情
     * @return
     */
    RoutinePathologyTsVo pathologyInfo();
}